ExamPlay Light Logo
Logg på

Computer Science for IGCSE & O level - Programming (Section 16 - No. 17)

What happens if the 'age' is 17 in the given code? ``` IF age >= 17 THEN Print "You are an adult" ELSE Print "You are a child" ENDIF ```
You are a child
You are an adult
No output is produced
An error is produced.

Forklaring

Since age (17) is greater than or equal to 17, 'You are an adult' will be printed.

Kommentarer (0)

Logg inn for å kommentere
Annonse
BrainBehindX Inc Logo
©2026; Drevet av BrainBehindX Inc